package cn.itsource.ymjs.entify;


import cn.itsource.ymjs.entity.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

//健身课程类型
@SuppressWarnings("JpaDataSourceORMInspection")
@Entity
@Table(name = "t_course_type")
@Data
public class FitnessCourseType extends BaseEntity implements Serializable{

    private static final long serialVersionUID = -3406492094078804128L;

    // 课程类型id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY) // IDENTITY主键自动递增
    private Long id;

    //课程类型名字
    @Column
    private String name;

    //课程类型名字
    @Column
    private Long pid;

    @Transient // 临时属性,数据库中不存在
    private List<FitnessCourseType> children = new ArrayList<>();

}
